<pro-header></pro-header>
<nz-card>
    <div nz-row>
        <div nz-col [nzSpan]="4" style="margin-bottom: 30px;">
            <button nz-button nzType="primary" routerLink="../add">添加菜单</button>
        </div>
    </div>
    <nz-table #nzTable [nzAjaxData]="data" [nzIsPagination]="false" (nzPageIndexChange)="getList()">
        <thead nz-thead>
        <tr>
            <th nz-th>
                <span>序号</span>
            </th>
            <th nz-th>
                <span>资源名称</span>
            </th>
            <th nz-th>
                <span>资源映射</span>
            </th>
            <th nz-th>
                <span>资源类型</span>
            </th>
            <th nz-th>
                <span>操作</span>
            </th>
        </tr>
        </thead>
        <tbody nz-tbody>
        <tr>
        <tr nz-tbody-tr *ngFor="let i of nzTable.data;let x=index">
            <td nz-td>{{x+1}}</td>
            <td nz-td>{{i.title}}</td>
            <td nz-td>{{i.url}}</td>
            <td nz-td>{{i.type}}</td>
            <td nz-td>
                <a (click)="delNavigation(i)">删除</a>
                <nz-divider nzType="vertical"></nz-divider>
                <a [routerLink]="['../show',i.id]">编辑</a>
            </td>
        </tr>
        </tbody>
    </nz-table>
</nz-card>

